#include <stdio.h>

int a[27];

int main()
{
    int i,j,k,s,n = 0;
    for(i = 0;i <= 4;i++)
    for(j = 0;j <= 3;j++)
    {
        s = i*3 + j*5;
        for(k = 0;a[k];k++)
        if(s == a[k])
        break;
        if(!a[k] && s)
        {
            a[k] = s;
            n++;
        }
    }
    printf("%d kinds:",n);
    for(k = 0;a[k];k++)
    printf("%3d",a[k]);
    printf("\n");  
}